package com.woniuxy.cloud.procurementassembly.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author 周川雄
 * @since 2022-02-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("battery_order_details")
@ApiModel(value = "BatteryOrderDetails对象", description = "")
public class BatteryOrderDetails implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单详情ID")
    @TableId(value = "order_details_id", type = IdType.AUTO)
    private Integer orderDetailsId;

    @ApiModelProperty(value = "订单关联id")
    @TableField("order_id")
    private Integer orderId;

    @ApiModelProperty(value = "订单关联标号")
    @TableField("order_code")
    private String orderCode;

    @ApiModelProperty(value = "电池代号")
    @TableField("batery_code")
    private String bateryCode;

    @ApiModelProperty(value = "电池类型")
    @TableField("battery_type")
    private String batteryType;

    @ApiModelProperty(value = "电池价格")
    @TableField("battery_price")
    private Double batteryPrice;

    @ApiModelProperty(value = "订单状态 默认为0开启   1关闭")
    @TableField("order_status")
    private Integer orderStatus;

    @ApiModelProperty(value = "默认0订单存在   1为逻辑删除")
    @TableField("order_del")
    private Integer orderDel;

    @ApiModelProperty(value = "记录新增时间")
    @TableField("raw_add_time")
    private LocalDateTime rawAddTime;

    @ApiModelProperty(value = "记录更新时间")
    @TableField("raw_update_time")
    private LocalDateTime rawUpdateTime;


}
